package com.jkgl.util;

import java.time.Duration;
import java.time.LocalDateTime;

public class DurationUtil {

    public static Long timeDiff(LocalDateTime start,LocalDateTime end){
        if(start == null || end == null){
            return 0L;
        }
        Duration between = Duration.between(start, end);
        return between.toMinutes();
    }

}
